import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '列表'
        })
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.column.operation.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.column.operation.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    approve: {
        url: '/:id/approve',
        title: formatMessage({
            id: 'routes.column.operation.approve',
            defaultMessage: '复审'
        }),
        format: '/{0}/approve'
    },
    firstapprove: {
        url: '/:id/firstapprove',
        title: formatMessage({
            id: 'routes.column.operation.firstapprove',
            defaultMessage: '初审'
        }),
        format: '/{0}/firstapprove'
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    partclaim: {
        url: '/:id/partclaim',
        title: formatMessage({
            id: 'routes.column.operation.partclaim',
            defaultMessage: '零件赔付'
        }),
        format: '/{0}/partclaim'
    },
    reason: {
        url: '/:id/reason',
        title: formatMessage({
            id: 'routes.column.operation.reason',
            defaultMessage: '原因分析'
        }),
        format: '/{0}/reason'
    },
    upgrade: {
        url: '/:id/upgrade',
        title: formatMessage({
            id: 'routes.column.operation.upgrade',
            defaultMessage: '升级讨论'
        }),
        format: '/{0}/upgrade'
    },
});

export default routes;
